export default function logger({getState}: {getState: Function}) {
  return (next:Function) => (action: IAction) => {
    
    const preState = getState()

    const returnValue = next(action)
    const currentState = getState()
    return returnValue
  }
}